<script setup lang="ts">
import {
  StnTipProvider,
  StnTip,
  useTipStore,
  TipMessageTypeConst,
  TipNotificationTypeConst,
} from 'st-ui-vue3-navie'

const tipStore = useTipStore()

setTimeout(() => {
  tipStore.message('Hello, world!', TipMessageTypeConst.LOADING)
  tipStore.notification({
    content: '说点啥呢',
    meta: '想不出来',
    duration: 2500,
    keepAliveOnHover: true
  }, TipNotificationTypeConst.ERROR)
}, 1000)
</script>

<template>
  <StnTipProvider>
    <StnTip></StnTip>
  </StnTipProvider>
</template>

<style scoped lang="scss">

</style>
